<?php 

namespace app\common\validate\single;

use think\Validate;

class SysSinglePassport extends Validate 
{ 
    protected $rule = [
        'uid' => 'require',
        'passport_number' => 'require',
        'sign_issue_organization' => 'require',
        'sign_issue_day' => 'require',
        'expire_day' => 'require',
        'organization_number' => 'require',
        'image' => 'require',
        'passport_start_day' => 'require',
        'passport_end_day' => 'require',
    ];

    protected $message = [
        'uid.require' => '请输入用户ID',
        'passport_number.require' => '请输入护照编号',
        'sign_issue_organization.require' => '请输入签发机构',
        'sign_issue_day.require' => '请输入签发日期',
        'expire_day.require' => '请输入到期日期',
        'organization_number.require' => '请输入机构编码',
        'image.require' => '请上传护照图片',
        'passport_start_day.require' => '请输入护照开始时间',
        'passport_end_day.require' => '请输入护照结束时间',
    ];

    protected $scene = [
        'edit' => ['uid','passport_number','sign_issue_organization','sign_issue_day','expire_day','organization_number','image','passport_start_day','passport_end_day','admin_name','remark','id'],
        'add' => ['uid','passport_number','sign_issue_organization','sign_issue_day','expire_day','organization_number','image','passport_start_day','passport_end_day','admin_name','remark'],
    ];

} 
